﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using Adex;
using System.Data.SqlClient;

namespace MediaMonitor.WebServicesForAndroid
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "RestAndroid" in code, svc and config file together.
    public class RestAndroid : IRestAndroid
    {
        public string checkAdmin(string username, string password)
        {

            DataTable dt = SPs.LoginAndroidApp(username, password).GetDataSet().Tables[0];
            System.Web.Script.Serialization.JavaScriptSerializer oSerializer =
            new System.Web.Script.Serialization.JavaScriptSerializer();
            return oSerializer.Serialize(dt);

        }
    }
}
